package com.ss.demo.springbootdemo.web.service.iml;

import com.ss.demo.springbootdemo.ioc.BeanFactory;
import com.ss.demo.springbootdemo.web.dao.DemoDao;
import com.ss.demo.springbootdemo.web.service.DemoService;

/**
 * 作者: MrZhangJR
 * 时间: 2021/11/8 14:28
 * 描述:
 */
public class DemoServiceImpl implements DemoService {

    private DemoDao demoDao = (DemoDao) BeanFactory.getBean("demoDao");

    @Override
    public void sayHello() {
        System.out.println(demoDao.sayHello());
    }
}
